package com.nnnu.wsnackshop.pojo.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 采购明细
 * </p>
 *
 * @author zk
 * @since 2025-05-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("purchase_items")
public class PurchaseItems implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 采购单ID
     */
    @TableId(value = "purchase_id", type = IdType.AUTO)
    private Integer purchaseId;

    /**
     * 规格ID
     */
    private Integer variantId;

    /**
     * 数量
     */
    private Integer quantity;

    /**
     * 成本价
     */
    private BigDecimal costPrice;


}
